package com.huluobo.a2204kotlinjetpackdemo.lifecycle

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 *  Created by LC on 2024/8/15.
 */
class ADViewModel : ViewModel() {
    var timing: Long = 10000L

    val timingResult = MutableLiveData<Long>()

    fun setTimingResult(timing: Long) {

        //运行在主线程当中
        timingResult.value = timing
        //运行在子线程当中
//        timingResult.postValue(timing)
    }
}